package com.ruoyi.project.lesson.lessoncode.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 课程激活码对象 lesson_activation_code
 *
 * @author shixiangwen
 * @date 2021-04-20
 */
public class LessonActivationCode extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 课程ID
     */
    @Excel(name = "课程ID")
    private Long lessonId;

    /**
     * 渠道号
     */
    @Excel(name = "渠道号")
    private String channel;

    /**
     * 激活码
     */
    @Excel(name = "激活码")
    private String code;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private Integer status;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long kkid;

    /**
     * app
     */
    @Excel(name = "app")
    private String app;

    /**
     * 导入时间
     */
    @Excel(name = "导入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 发放的用户
     */
    @Excel(name = "发放的用户")
    private String sendUser;

    private Date sendTime;

    private String codes;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setLessonId(Long lessonId) {
        this.lessonId = lessonId;
    }

    public Long getLessonId() {
        return lessonId;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getChannel() {
        return channel;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setKkid(Long kkid) {
        this.kkid = kkid;
    }

    public Long getKkid() {
        return kkid;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getApp() {
        return app;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setSendUser(String sendUser) {
        this.sendUser = sendUser;
    }

    public String getSendUser() {
        return sendUser;
    }

    public String getCodes() {
        return codes;
    }

    public void setCodes(String codes) {
        this.codes = codes;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("lessonId", getLessonId())
                .append("channel", getChannel())
                .append("code", getCode())
                .append("status", getStatus())
                .append("kkid", getKkid())
                .append("app", getApp())
                .append("createdTime", getCreatedTime())
                .append("sendUser", getSendUser())
                .toString();
    }
}
